home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1998 November / Freeware November 1998.img / dist / fw_UDELxntp.idb / usr / freeware / src / xntp-3.4o-export / lib / inttoa.c.z / inttoa.c
C/C++ Source or Header  |  1998-01-21  |  253b  |  20 lines

  1. /*
  2.  * inttoa - return an asciized signed integer
  3.  */
  4. #include <stdio.h>
  5.  
  6. #include "lib_strbuf.h"
  7. #include "ntp_stdlib.h"
  8.  
  9. char *
  10. inttoa(ival)
  11.     long ival;
  12. {
  13.     register char *buf;
  14.  
  15.     LIB_GETBUF(buf);
  16.  
  17.     (void) sprintf(buf, "%ld", (long)ival);
  18.     return buf;
  19. }
  20.